package cn.yougou.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * (YgCommodity)实体类
 *
 * @author 白杰崇
 * @since 2020-12-06 14:08:47
 */

public class YgCommodity implements Serializable {
    private static final long serialVersionUID = 349781763809828439L;

    /**
     * 商品主键
     */
    private Integer id;

    /**
     * 商品标题
     */
    private String commodityid;

    /**
     * 所属类目id，与yg_category表关联
     */
    private Integer categoryid;

    /**
     * 商品介绍
     */
    private String show;

    /**
     * 商品宣传图片列表（轮播图）
     */
    private String gallery;

    /**
     * 商品页面商品图片
     */
    private String picurl;

    /**
     * 商品分享海报
     */
    private String shareurl;

    /**
     * 是否上架
     */
    private Integer isOnSale;

    /**
     * 单位
     */
    private String unit;

    /**
     * 是否新品
     */
    private Integer isNew;

    /**
     * 是否热品
     */
    private Integer isHot;

    /**
     * 商品价格
     */
    private Double commoditymoney;

    /**
     * 销售量
     */
    private Integer salesvolume;

    /**
     * 库存
     */
    private Integer inventory;

    /**
     * 浏览量
     */
    private Integer pageview;

    /**
     * 商品自带折扣
     */
    private Double discount;

    /**
     * 商品详细介绍，是富文本格式
     */
    private String detail;

    /**
     * 服务
     */
    private String serve;

    /**
     * 商品创建时间
     */
    private String createdate;

    /**
     * 商品修改时间
     */
    private String updatetime;

    /**
     * 逻辑删除
     */
    private Integer deleted;


    public YgCommodity() {
    }

    public YgCommodity(Integer categoryid , String commodityid) {
        this.commodityid = commodityid;
        this.categoryid = categoryid;
    }

    public YgCommodity(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public Integer getIsOnSale() {
        return isOnSale;
    }

    public void setIsOnSale(Integer isOnSale) {
        this.isOnSale = isOnSale;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(String commodityid) {
        this.commodityid = commodityid;
    }

    public Integer getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public String getShow() {
        return show;
    }

    public void setShow(String show) {
        this.show = show;
    }

    public String getGallery() {
        return gallery;
    }

    public void setGallery(String gallery) {
        this.gallery = gallery;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public String getShareurl() {
        return shareurl;
    }

    public void setShareurl(String shareurl) {
        this.shareurl = shareurl;
    }

    public Double getCommoditymoney() {
        return commoditymoney;
    }

    public void setCommoditymoney(Double commoditymoney) {
        this.commoditymoney = commoditymoney;
    }

    public Integer getSalesvolume() {
        return salesvolume;
    }

    public void setSalesvolume(Integer salesvolume) {
        this.salesvolume = salesvolume;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Integer getPageview() {
        return pageview;
    }

    public void setPageview(Integer pageview) {
        this.pageview = pageview;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getServe() {
        return serve;
    }

    public void setServe(String serve) {
        this.serve = serve;
    }

    public String getCreatedate() {
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }


    @Override
    public String toString() {
        return "YgCommodity{" +
                "id=" + id +
                ", commodityid='" + commodityid + '\'' +
                ", categoryid=" + categoryid +
                ", show='" + show + '\'' +
                ", gallery='" + gallery + '\'' +
                ", picurl='" + picurl + '\'' +
                ", shareurl='" + shareurl + '\'' +
                ", isOnSale=" + isOnSale +
                ", unit='" + unit + '\'' +
                ", isNew=" + isNew +
                ", isHot=" + isHot +
                ", commoditymoney=" + commoditymoney +
                ", salesvolume=" + salesvolume +
                ", inventory=" + inventory +
                ", pageview=" + pageview +
                ", discount=" + discount +
                ", detail='" + detail + '\'' +
                ", serve='" + serve + '\'' +
                ", createdate=" + createdate +
                ", updatetime=" + updatetime +
                ", deleted=" + deleted +
                '}';
    }
}